package com.appspot.zarm.gomoku.transfer;

import com.appspot.zarm.gomoku.Coord;
import com.google.gson.Gson;

public class JsonTransfer {

	public static Coord getCoordFromJson(String data) {
		 return (CoordImpl)new Gson().fromJson(data, CoordImpl.class);
	}

	public static String getBoardToJson(BoardExternalizer boardExternalizer) {
		return new Gson().toJson(boardExternalizer.getBoardState());
	}
}
